package com.wn.mapper;

import com.wn.ov.DepartmentRecordOv;
import com.wn.pojo.DepartmentCode;

import java.util.List;

public interface DepartmentCodeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DepartmentCode record);

    int insertSelective(DepartmentCode record);

    DepartmentCode selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DepartmentCode record);

    int updateByPrimaryKey(DepartmentCode record);

    //搜索记录表是否有未审核的转科申请
    List<DepartmentCode> getNoIntoByPatientId(Integer id);

    //通过患者id查询所有的转科记录
    List<DepartmentRecordOv> getAllDepartmentRecordByPatientId(Integer id);
}